package project001.view;

import javax.swing.JOptionPane;

import project001.properties.LanguageResources;


public class Messages extends JOptionPane {

	private static final long serialVersionUID = 1L;
	
	public static boolean getMessageOptionCloseSystem() {

		int result = showConfirmDialog(null,
				LanguageResources.getResource("want_to_close_system"),
				LanguageResources.getResource("message"), YES_NO_OPTION,
				QUESTION_MESSAGE);

		if (result == JOptionPane.YES_OPTION) {
			return true;
		} else if (result == JOptionPane.NO_OPTION
				|| result == JOptionPane.CLOSED_OPTION) {
			return false;
		}
		return false;
	}
}
